﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_GoodsCodes")]
    public class LKGoodsCodes
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }


        private string _goodsCode;
        /// <summary>
        /// 商品批号
        /// </summary>
        [Column("GoodsCode")]
        public string GoodsCode
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_goodsCode))
                    _goodsCode = string.Empty;
                return _goodsCode;
            }
            set { _goodsCode = value; }
        }


        private int _billType;
        /// <summary>
        /// 单据类别(1:入库,2:出库)
        /// </summary>
        [Column("BillType")]
        public int BillType
        {
            get
            {
                return _billType;
            }
            set { _billType = value; }
        }


        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }


    }
}

